package com.treasure.mall.biz.mapstruct;

import com.treasure.mall.biz.dto.product.LiveProductSaveDTO;
import com.treasure.mall.biz.dto.product.NormalProductSaveDTO;
import com.treasure.mall.biz.entity.product.ProductPO;
import com.treasure.mall.biz.vo.product.ProductApiDetailVo;
import com.treasure.mall.biz.vo.product.ProductApiVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author wm
 */
@Mapper
public interface ProductMapStruct {
    ProductMapStruct INSTANCE = Mappers.getMapper(ProductMapStruct.class);

    ProductPO normalDto2Po(NormalProductSaveDTO dto);

    ProductPO liveDto2Po(LiveProductSaveDTO dto);

    ProductApiDetailVo apiVo2DetailVo(ProductApiVo apiVo);
}